package exam;

/**
 * Tests the answer to the third sample question.
 * The text of the question is as follows:
 * "2: Write a method that returns the parameter squared."
 * 
 * @author Branden Ogata
 *
 */

public class TestSampleA02 extends Tester
{
  public static void main(String[] args)
  {
    final double points = getPoints(args);
    
    SampleA02 question = new SampleA02();
    
    // Positive
    System.out.println(test(Category.EQUALS, "square(8):", 64, question.square(8), 
                            percentageToPoints(0.5, points)));
    
    // Negative
    System.out.println(test(Category.EQUALS, "square(-8):", 64, question.square(-8), 
                            percentageToPoints(0.5, points)));
    
    System.out.format("[%.2f/%.2f]%n", getTotalPoints(), points);
  }
}
